package org.example.myleet.p735;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[5,10]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{5,10,-5}))));
        Assert.isTrue("[]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{8,-8}))));
        Assert.isTrue("[10]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{10,2,-5}))));
        Assert.isTrue("[10,8,4]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{10,2,-5,8,-5,4}))));
        Assert.isTrue("[-2,-1,1,2]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{-2,-1,1,2}))));
        Assert.isTrue("[-2,-2,-2]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{-2,-2,1,-2}))));
        Assert.isTrue("[-2,-2,-2]".equals(JsonUtils.toJson(solution.asteroidCollision(new int[]{1,-2,-2,-2}))));
    }
}
